package com.yyge.vo;

public enum ResultCode {
    OK(20000, "操作成功"),
    FAILURE(50000,"操作失败"),
    PARAM_IS_INVALID(10100,"参数无效"),
    PARAM_IS_BLANK(10200,"参数为空"),
    PARAM_TYPE_BIND_ERROR(10300,"参数类型错误"),
    PARAM_NOT_COMPLETE(10400,"参数缺失"),
    ILLEGAL_TOKEN(50800,"非法的令牌"),
    TOKEN_EXPIRED(51400,"令牌已失效"),
    USER_NOT_LOGGED_IN(51500, "用户未登录"),
    USER_LOGIN_ERROR(51500, "用户名或密码错误"),
    USER_ACCOUNT_FORBIDDEN(51600, "账户被禁用"),
    USER_NOT_EXIST(51700, "用户名不存在"),
    USER_HAS_EXIST(51800, "用户名已存在");

    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String  getMessage() {
        return message;
    }
}

